package cn.tsa.share.jdbc.repository;


import cn.tsa.share.jdbc.domain.Order;
import cn.tsa.share.jdbc.domain.OrderQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hongwei
 */
@Repository
public interface OrderRepository {
    /**
     * insert
     *
     * @param order order
     */
    void insert(Order order);

    /**
     * searchAllList
     *
     * @return List
     * @param orderQuery
     */
    List<Order> searchAllList(OrderQuery orderQuery);
}
